package api;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@ContentRowHeight(50) //内容高度
@Data
public class TestStatistics {

    @ExcelProperty(value = "业务组",order = 1)
    private String buniess="";

    @ExcelProperty("成功数")
    private int success;

    @ExcelProperty("失败数")
    private int error;

    @ExcelProperty("成功比例")
    private String  statistics;

    @ExcelIgnore
    private List<TestCase> retry=new ArrayList<>();

    @ColumnWidth(100)
    @ExcelProperty("失败接口")
    private String errorApis;


    public void addRetry(TestCase testCase){
        this.retry.add(testCase);
    }
}
